using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DTO;
using DAO;

namespace BUS
{
    public class NguoiDungBUS
    {
        public static bool Delete(NguoiDungDTO nd)
        {
            return NguoiDungDAO.Delete(nd);
        }
        public static bool Insert(NguoiDungDTO nd)
        {
            return NguoiDungDAO.Insert(nd);
        }
        public static bool Update(NguoiDungDTO nd)
        {
            return NguoiDungDAO.Update(nd);
        }
        public static List<NguoiDungDTO> Select()
        {
            return NguoiDungDAO.Select();
        }
        public static NguoiDungDTO SelectByID(int MaNguoiDung)
        {
            return NguoiDungDAO.SelectByID(MaNguoiDung);
        }
        public static NguoiDungDTO SelectByTenNguoiDung(string TenDangNhap)
        {
            return NguoiDungDAO.SelectByTenNguoiDung(TenDangNhap);
        }
    }
}
